/**
 * @author		Ben Layet
 * @version 	0.1
 * @date		2 Sep 2008
 */
package org.learnaholic.application;

import javax.swing.SwingUtilities;

/**
 * Main application class.
 */
public class Main
{
	/** The thread starting up the application. */
	private static final InvokeThread invokeThread = new InvokeThread();
	
	/**
	 * Main method, starting point of the application.
	 * 
	 * @param args
	 *            the parameters given to java on the command line.
	 */
	public static void main(String[] args) throws Exception
	{
		
		// Schedule a job for the event-dispatching thread:
		// creating and showing this application's GUI.
		SwingUtilities.invokeLater(invokeThread);
	    
	}
	
	/**
	 * Invoker thread.
	 */
	private static class InvokeThread implements Runnable
	{
		/**
		 * Thread execution method.
		 */
		public void run()
		{
			LearnaholicImpl.getInstance().start();
		}
	}
}
